package com.example.batch;

import org.springframework.batch.item.ItemProcessor;

import com.example.batch.api.DemoDTO;

public class MyProcessor implements ItemProcessor<DemoDTO, DemoDTO> {

	@Override
	public DemoDTO process(DemoDTO item) throws Exception {
		System.out.println("-------start process------");
		System.out.println(item.getI() + "," + item.getStr());
		item.setStr("hello");
		System.out.println("-------end   process------");
		return item;
	}

}
